package com.zj.demomybatisplus.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zj.demomybatisplus.mapper.UserMapper;
import com.zj.demomybatisplus.model.User;
import com.zj.demomybatisplus.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: zj
 * @Date: 2019/3/24 12:54
 * @Description:
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService{

    @Autowired
    UserMapper userMapper;//这边报红，没事


    @Override
    public User selectOneByUsername(String username) {
        return userMapper.findOneByUsername( username );
    }
}
